Repository navigation
fix(ios): run a coordinate press on a SpringBoard surface in place - #4884
Conversation
A coordinate tap while the session app is in the background used to activate the session app first (stale_target), so a tap on a notification banner landed on the app instead. When the accessibility hit test at the point answers SpringBoard's pid, the tap now runs against SpringBoard without activation. A point over another app, or a point the hit test does not answer, keeps the activation. Fixes #4655 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Size Report
Startup median (7 runs, lower is better):
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…g springboard Reading the lazy springboard application for every command threw NSInternalInconsistencyException on the macOS runner. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Apex Sentinel: 2 new findings on d96267d. The verdict and the full list are in the summary comment.
…up off screen Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Apex Sentinel · ✅ Approve · review of
|
| Command | What it does |
|---|---|
@apex-sentinel-staging note <context> |
Adds context; Sentinel re-checks the cited code |
@apex-sentinel-staging pivot <why> |
Says the finding is wrong; Sentinel re-checks the cited code |
@apex-sentinel-staging like |
Marks the finding as useful |
@apex-sentinel-staging dislike <why> |
Marks it as not useful, so it is not raised again |
On this conversation, comment @apex-sentinel-staging review to run a full review once again.
|
This PR is ready at 4bc02d7. Not blocking: the off-screen test comment says "a point the hit test does not answer", but the bounds guard rejects that point before the hit test, and the timeout and other-app paths have no test; the hit test runs on the main actor without the private queue and in-flight guard that the custom-action read uses, so repeated taps against a wedged testmanagerd could stack abandoned lookups; and the hit-test point is not rotated for landscape the way synthesized gestures are, so a landscape banner press is worth checking. These can be taken or left, as follow-ups. CI is green, with 22 checks and none failing at 4bc02d7. There are no conflicts. No merge step remains beyond the usual approval, because the live banner evidence is in the body and the author ties it to 4bc02d7. The delta from d96267d only adds the state and bounds guards, which do not affect the banner route. Not verified here: the iOS unit tests and a device run, that testmanagerd replies off the main queue, that Control Center is SpringBoard-owned, and landscape hit-test coordinates. Both earlier inline threads are fixed at this head and can be resolved: the stopped or unknown app guard (#4884 (comment)) and the off-screen stall, now covered by the bounds guard (#4884 (comment)). |
Summary
Fixes #4655. On iOS, a coordinate
presswhile the session app ran in the background activated the app first (stale_target), so a banner tap landed on the app. Now, when testmanagerd's hit test at an on-screen point answers SpringBoard's pid, the tap runs against SpringBoard with no activation. Another app's point, an off-screen point, or no answer within 1 s keeps the activation. A stopped session app keeps the launch. Home Screen and Control Center points are SpringBoard too.Before / after
Settings session,
home, Messages push,press 220 91on the banner (iPhone 18 Pro Max simulator, iOS 27.0):origin/main):targetActivation {priorState: 2, reason: stale_target}; Settings in front, banner lost.targetActivation; Messages opens.press 220 800over Messages still reportsstale_target.Validation
4bc02d7: 5 pass. The two new regressions (background in place, stopped app launches) each failed before their fix.4bc02d7: 434 tests, 0 failures.fr-FR.🤖 Generated with Claude Code